@echo off

echo ****************************************
echo   Command line messaging test client
echo ****************************************
echo Parameter 1: Path to XML file describing all the parameters
echo ****************************************

if ""%1""==""""  goto helpCmd

SET CLASSPATH_JMS=.;%CLASSPATH_JMS%
SET CLASSPATH_JMS=%CLASSPATH_JMS%;ant.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;ant-launcher.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;commons-logging.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;concurrent.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;ehcache-core.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;geronimo-jms_1.1_spec.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;javassist.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;jbossall-client.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;jboss-aop.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;jboss-common-core.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;jboss-logging-log4j.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;jboss-logging-spi.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;jboss-mdr.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;jboss-messaging-client.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;jboss-reflect.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;jboss-remoting.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;log4j.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;qdox.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;slf4j-api.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;slf4j-log4j12.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;trove.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;xml-apis.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;messaging_service.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;messaging_test_cli.jar
SET CLASSPATH_JMS=%CLASSPATH_JMS%;util.jar

java -cp %CLASSPATH_JMS%  org.infodavid.common.messaging.test.MessagingTestClient %1 %2 %3

goto end

:helpCmd
@ECHO Usage: run.bat [Command file path]
:end

SET CLASSPATH_JMS=

pause
